package oop2.oop3;

/**
 * @author oldliu
 * @since 1.0
 */
public class PetTest {
    public static void main(String[] args) {
        GoldenFish g=new GoldenFish("小花花",90,90);
        g.show();
        g.sleep();
        g.eat();
        g.swim();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
        Pet p=new GoldenFish("大花花",90,90);
        p.show();
        p.eat();
        p.sleep();
        //p.swim();
        System.out.println(">>>>>>>>>>>>>>>>>>>>>>>");
        Cat p3=new Cat();
        p3.setName("小咪咪");
        p3.eat();
        p3.sleep();
        p3.sleep();
        p3.sleep();
        p3.catchMouse();
    }
}
